Opkg Reference
Table of Contents
Overview
Here is the full usage information for opkg:1
usage: opkg [options...] sub-command [arguments...] where sub-command is one of: Package Manipulation: update Update list of available packages upgrade Upgrade installed packages install Install package(s) configure Configure unpacked package(s) remove Remove package(s) flag Flag package(s) =hold|noprune|user|ok|installed|unpacked (one per invocation) Informational Commands: list List available packages list-installed List installed packages list-upgradable List installed and upgradable packages files List files belonging to search List package providing info [pkg|regexp] Display all info for status [pkg|regexp] Display all status for download Download to current directory compare-versions compare versions using = = print-architecture List installable package architectures whatdepends [-A] [pkgname|pat]+ whatdependsrec [-A] [pkgname|pat]+ whatprovides [-A] [pkgname|pat]+ whatconflicts [-A] [pkgname|pat]+ whatreplaces [-A] [pkgname|pat]+ Options: -A Query all packages not just those installed -V[] Set verbosity level to . --verbosity[=] Verbosity levels: 0 errors only 1 normal messages (default) 2 informative messages 3 debug 4 debug level 2 -f Use as the opkg configuration file --conf --cache Use a package cache -d Use as the the root directory for --dest package installation, removal, upgrading. should be a defined dest name from the configuration file, (but can also be a directory name in a pinch). -o Use as the root directory for --offline-root offline installation of packages. Force Options: --force-depends Install/remove despite failed dependencies --force-maintainer Overwrite preexisting config files --force-reinstall Reinstall package(s) --force-overwrite Overwrite files from other package(s) --force-downgrade Allow opkg to downgrade packages --force-space Disable free space checks --noaction No action -- test only --download-only No action -- download only --nodeps Do not follow dependencies --force-removal-of-dependent-packages Remove package and all dependencies --autoremove Remove packages that were installed automatically to satisfy dependencies -t Specify tmp-dir. --tmp-dir Specify tmp-dir. regexp could be something like 'pkgname*' '*file*' or similar e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'
example
intall
To install the helloworld-0.0.ipk package, copy this file over to your home directory.
$ opkg install helloworld-0.0.ipk $ hello Hello, World!
update and install
$ opkg update Downloading http://www.gumstix.net/feeds/unstable/ipk/glibc/armv7a/base/Packages.gz. Inflating http://www.gumstix.net/feeds/unstable/ipk/glibc/armv7a/base/Packages.gz. Updated list of available packages in /var/lib/opkg/base. ... $ opkg list_installed | grep gcc libgcc1 - 4.3.3-r17.1.6 $ opkg install task-native-sdk ... $ opkg list | wc -l 17698 $ echo 'src/gz angstrom-base http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/ base' > /etc/opkg/angstrom-base.conf $ opkg update ... $ opkg list | wc -l 21755
File example
arago-dm816x-evm-feed.conf
src/gz dm816x-evm http://feeds.arago-project.org/feeds/live/ipk/dm816x-evm
angstrom-dm816x-evm-feed.conf
src/gz dm816x-evm http://feeds.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/machine/dm816x-evm
File Server:
http://arago-project.org/files/releases/2009.11/ipk/armv7a/ http://feeds.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/ http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/base/ http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/python/ http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/machine/c6a816x-evm/